<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>aws-crt-cpp: /home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/codebuild/create-projects.py File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">aws-crt-cpp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_46f28653a76353d194ab69dcdeb33ab5.html">codebuild</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">create-projects.py File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacecreate-projects"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html">create-projects</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0413855f4fa7215a89c3c03981659732"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a0413855f4fa7215a89c3c03981659732">create-projects.do_replace</a> (obj)</td></tr>
<tr class="separator:a0413855f4fa7215a89c3c03981659732"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:aed3f5230d66ad2f924551c9dcc9998d1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#aed3f5230d66ad2f924551c9dcc9998d1">create-projects.parser</a> = argparse.ArgumentParser(description='Creates all required AWS CodeBuild projects for a repo')</td></tr>
<tr class="separator:aed3f5230d66ad2f924551c9dcc9998d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e98101a40c3e8a674b8023e90df2b7c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a8e98101a40c3e8a674b8023e90df2b7c">create-projects.type</a></td></tr>
<tr class="separator:a8e98101a40c3e8a674b8023e90df2b7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6690bd467c6241951130aa0bf17e373d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a6690bd467c6241951130aa0bf17e373d">create-projects.str</a></td></tr>
<tr class="separator:a6690bd467c6241951130aa0bf17e373d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57186536b7a1811230fd299b142617cf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a57186536b7a1811230fd299b142617cf">create-projects.help</a></td></tr>
<tr class="separator:a57186536b7a1811230fd299b142617cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30fed16487e895222a4b2a8e95fe2e2f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a30fed16487e895222a4b2a8e95fe2e2f">create-projects.dest</a></td></tr>
<tr class="separator:a30fed16487e895222a4b2a8e95fe2e2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fcde7e64c6fd18578d1a591ec883c29"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a8fcde7e64c6fd18578d1a591ec883c29">create-projects.default</a></td></tr>
<tr class="separator:a8fcde7e64c6fd18578d1a591ec883c29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8fe9240ce5dfd5dc4a924e1079a1635"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#ab8fe9240ce5dfd5dc4a924e1079a1635">create-projects.args</a> = parser.parse_args()</td></tr>
<tr class="separator:ab8fe9240ce5dfd5dc4a924e1079a1635"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ec264243746f632900fc6b9d46a2f88"><td class="memItemLeft" align="right" valign="top">dictionary&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a7ec264243746f632900fc6b9d46a2f88">create-projects.CREATE_PARAM_TEMPLATE</a></td></tr>
<tr class="separator:a7ec264243746f632900fc6b9d46a2f88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a6136ded2a985a7a5683f2b7645ec58"><td class="memItemLeft" align="right" valign="top">dictionary&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a0a6136ded2a985a7a5683f2b7645ec58">create-projects.ENVIRONMENTS</a></td></tr>
<tr class="separator:a0a6136ded2a985a7a5683f2b7645ec58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ffaee2e47d267c80c982aae331e73f5"><td class="memItemLeft" align="right" valign="top">list&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a7ffaee2e47d267c80c982aae331e73f5">create-projects.BUILD_CONFIGS</a></td></tr>
<tr class="separator:a7ffaee2e47d267c80c982aae331e73f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a406877ba379ef8c928bc3c4cc8ca26"><td class="memItemLeft" align="right" valign="top">dictionary&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a3a406877ba379ef8c928bc3c4cc8ca26">create-projects.BUILDS</a> = {}</td></tr>
<tr class="separator:a3a406877ba379ef8c928bc3c4cc8ca26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af54895911eaa1ef1f850364eba6bf3c3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#af54895911eaa1ef1f850364eba6bf3c3">create-projects.build_name</a> = config['build']</td></tr>
<tr class="separator:af54895911eaa1ef1f850364eba6bf3c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae010c7c6498f20b1f6394b0c1da411ac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#ae010c7c6498f20b1f6394b0c1da411ac">create-projects.build</a> = dict(CREATE_PARAM_TEMPLATE)</td></tr>
<tr class="separator:ae010c7c6498f20b1f6394b0c1da411ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0071970ed5c889d180e4f51ede326275"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a0071970ed5c889d180e4f51ede326275">create-projects.env</a> = dict(ENVIRONMENTS[config['env']])</td></tr>
<tr class="separator:a0071970ed5c889d180e4f51ede326275"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c0acd7f84633e6c3dc435ccccbe67be"><td class="memItemLeft" align="right" valign="top">dictionary&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a5c0acd7f84633e6c3dc435ccccbe67be">create-projects.sub_params</a></td></tr>
<tr class="separator:a5c0acd7f84633e6c3dc435ccccbe67be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a467e4c545519c2e948722fac14922c16"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a467e4c545519c2e948722fac14922c16">create-projects.session</a> = boto3.Session(profile_name=args.profile, region_name='us-east-1')</td></tr>
<tr class="separator:a467e4c545519c2e948722fac14922c16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad737f90905fc66d25454b39289d0580"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#aad737f90905fc66d25454b39289d0580">create-projects.codebuild</a> = session.client('codebuild')</td></tr>
<tr class="separator:aad737f90905fc66d25454b39289d0580"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8c94bb8b5d1a19f6a9b4db66d9b346e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#ab8c94bb8b5d1a19f6a9b4db66d9b346e">create-projects.all_project_names</a> = list(BUILDS.keys())</td></tr>
<tr class="separator:ab8c94bb8b5d1a19f6a9b4db66d9b346e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9c135e268ddee32df915cf6d393d823"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#ab9c135e268ddee32df915cf6d393d823">create-projects.existing_projects</a> = codebuild.batch_get_projects(names=all_project_names)</td></tr>
<tr class="separator:ab9c135e268ddee32df915cf6d393d823"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2d3ad4c86a9b1aebbbc671b12eb6cfb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#aa2d3ad4c86a9b1aebbbc671b12eb6cfb">create-projects.new_projects</a> = existing_projects['projectsNotFound']</td></tr>
<tr class="separator:aa2d3ad4c86a9b1aebbbc671b12eb6cfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dbf4c29eacda1f4cf049b6756e358b0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecreate-projects.html#a4dbf4c29eacda1f4cf049b6756e358b0">create-projects.projectName</a></td></tr>
<tr class="separator:a4dbf4c29eacda1f4cf049b6756e358b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
